package com.ljh.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘剑鸿
 * @since 2021-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Reservation对象", description="")
public class Reservation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预定ID")
    @TableId(value = "reservationid", type = IdType.AUTO)
    private Integer reservationid;

    @ApiModelProperty(value = "餐桌ID")
    private Integer diningTableid;

    @ApiModelProperty(value = "客户ID")
    private Integer clientid;

    @ApiModelProperty(value = "操作员")
    private Integer id;

    @ApiModelProperty(value = "人数")
    private Integer rePeople;

    @ApiModelProperty(value = "预抵时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date toReservatime;

    @ApiModelProperty(value = "年月日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date Reservatime;

    @ApiModelProperty(value = "时分")
    @DateTimeFormat(pattern = "HH:mm")
    private Date hhmmtime;

    @ApiModelProperty(value = "预定时间")
    @TableField(fill = FieldFill.INSERT)
    private Date resevationtime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "预约定金")
    private BigDecimal reservamoney;
    /*额外添加*/
    @ApiModelProperty(value = "餐桌编号")
    private Integer diningnumber;

    @ApiModelProperty(value = "客户名字")
    private String clientname;

    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8") //响应给前端的数据格式化
    private Date Sresevationtime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8") //响应给前端的数据格式化
    private Date StoReservatime;

}
